var app = getApp();
Page({
  data:{
    protocal:'HTTP',
    model:'全局模式'
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    
  },
  onReady:function(){
    // 页面渲染完成
    
  },
  onShow:function(){
    this.setData({
      protocal:app.globalData.protocal,
      model:app.globalData.model,
    })
    // 页面显示
    
  },
  onHide:function(){
    // 页面隐藏
    
  },
  onUnload:function(){
    // 页面关闭
    
  },
  back:function(){
      console.log("back");
      wx.navigateBack({
          delta:1
      });
  },
  confirm:function(){
    wx.showToast({
      title: '已修改',
      icon: 'success',
      duration: 2000
    })
  },
  select_protocol:function(){
     console.log("select_protocol");
      wx.navigateTo({
          url:"../select_protocol/select_protocol"
      });
  },
  select_model:function(){
     console.log("select_model");
      wx.navigateTo({
          url:"../select_model/select_model"
      });
  }
})